package com.ctshk.rpc.order.bus.req;

import java.util.List;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("创建巴士订单req")
public class BusPlaceOrderReq extends BusOrderCreateBaseReq {
    private static final long serialVersionUID = 1L;

//    @NotEmpty(message = "票种名称不能为空")
//    @ApiModelProperty(value = "票种名称")
//    private String ticketTypeName;

//    @NotNull(message = "购买数量不能为空")
//    @ApiModelProperty(value = "购买数量")
//    private Integer number;

    @ApiModelProperty(value = "代理公司id")
    private Long agencyId;

    @ApiModelProperty(value = "代理公司")
    private String agencyCompany;

    @ApiModelProperty(value = "代理人名称")
    private String agentUserName;

    @ApiModelProperty(value = "产品类型")
    private Integer productType;
    
    @NotNull(message = "客户类型不能为空")
    @ApiModelProperty(value = "客户类型；1：散客；2：代理；3；大客户；")
    private Integer clientType;
    
    @ApiModelProperty(value = "大客户ID")
    private Long bigClientId;

    @ApiModelProperty(value = "大客户名称")
    private String bigClientName;

//    @ApiModelProperty(value = "销售人员id")
//    private Long salesmanId;
//
//    @ApiModelProperty(value = "销售人员名称")
//    private String salesmanName;

//    @ApiModelProperty(value = "销售方式(1：单品销售 2：打包销售)")
//    private Integer salesMethods;
    
    @Valid
    @NotEmpty(message = "旅客列表不能为空")
    @ApiModelProperty(value = "旅客列表")
    private List<BusOrderTouristReq> busOrderTouristReqList;

    @Valid
    @ApiModelProperty("保险信息")
    private BusPlaceOrderInsuranceReq insuranceReq;
}
